package org.example.erp.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.erp.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    List<Employee> getEmployeeAndRanks(Page<Employee> page, @Param("ew") Wrapper<Employee> queryWrapper);

    int addEmployee(Employee employee);
}